package com.orhon.smartcampus.modules.core.controller;

import com.orhon.smartcampus.modules.teacher.dao.TInformationDao;
import com.orhon.smartcampus.modules.teacher.entity.TInformation;
import com.orhon.smartcampus.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/search")
public class SearchController {

    @Autowired
    TInformationDao tInformationDao;


    @GetMapping("/syncteacher")
    public void syncTeachers(){
        List<TInformation> list = tInformationDao.find("from TInformation");

        System.out.println(list.size());
    }
}
